package com.xyq.friend.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xyq.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_user_exam")
public class UserExam extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long userExamId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;      // 用户id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;      // 竞赛id

    private Integer score;        // 成绩

    private Integer examRank;  // 排名


}
